package com.fmsz.physicalheadline.entity.news.focus;

import android.util.Log;

import com.fmsz.physicalheadline.entity.news.NewsChannels;
import com.fmsz.physicalheadline.entity.news.NewsUser;
import com.google.gson.annotations.Expose;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2016/12/19.
 */

public class ItemData {
    private int id,user_id,dashboard_id,dashboard_type,dashboard_data,image_type,content_type,status,show_type,label,note_num;
    private String title,text,image,create_time,editor,update_time;
    private NewsUser user;
    private List<NewsChannels> channels;
    private List<String> text_images;
    private String text_content,source_link;
    private int cbs_flag,collection_id;
    private float js_version;
    private boolean expire_flag;
    @Expose(deserialize = false,serialize = false)
    private String formatTime;

    public int getCbs_flag() {
        return cbs_flag;
    }

    public void setCbs_flag(int cbs_flag) {
        this.cbs_flag = cbs_flag;
    }

    public List<NewsChannels> getChannels() {
        return channels;
    }

    public void setChannels(List<NewsChannels> channels) {
        this.channels = channels;
    }

    public int getCollection_id() {
        return collection_id;
    }

    public void setCollection_id(int collection_id) {
        this.collection_id = collection_id;
    }

    public int getContent_type() {
        return content_type;
    }

    public void setContent_type(int content_type) {
        this.content_type = content_type;
    }

    public String getCreate_time() {
//        Date parse=null;
//        try {
//            parse = new SimpleDateFormat("HH:mm").parse(formatTime);
//        } catch (ParseException e) {
//            e.printStackTrace();
//        }
//        create_time = new SimpleDateFormat("HH:mm").format(parse);
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
//        this.formatTime = create_time;
    }

    public int getDashboard_data() {
        return dashboard_data;
    }

    public void setDashboard_data(int dashboard_data) {
        this.dashboard_data = dashboard_data;
    }

    public int getDashboard_id() {
        return dashboard_id;
    }

    public void setDashboard_id(int dashboard_id) {
        this.dashboard_id = dashboard_id;
    }

    public int getDashboard_type() {
        return dashboard_type;
    }

    public void setDashboard_type(int dashboard_type) {
        this.dashboard_type = dashboard_type;
    }

    public String getEditor() {
        return editor;
    }

    public void setEditor(String editor) {
        this.editor = editor;
    }

    public boolean isExpire_flag() {
        return expire_flag;
    }

    public void setExpire_flag(boolean expire_flag) {
        this.expire_flag = expire_flag;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getImage_type() {
        return image_type;
    }

    public void setImage_type(int image_type) {
        this.image_type = image_type;
    }

    public float getJs_version() {
        return js_version;
    }

    public void setJs_version(float js_version) {
        this.js_version = js_version;
    }

    public int getLabel() {
        return label;
    }

    public void setLabel(int label) {
        this.label = label;
    }

    public int getNote_num() {
        return note_num;
    }

    public void setNote_num(int note_num) {
        this.note_num = note_num;
    }

    public int getShow_type() {
        return show_type;
    }

    public void setShow_type(int show_type) {
        this.show_type = show_type;
    }

    public String getSource_link() {
        return source_link;
    }

    public void setSource_link(String source_link) {
        this.source_link = source_link;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getText_content() {
        return text_content;
    }

    public void setText_content(String text_content) {
        this.text_content = text_content;
    }

    public List<String> getText_images() {
        return text_images;
    }

    public void setText_images(List<String> text_images) {
        this.text_images = text_images;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public NewsUser getUser() {
        return user;
    }

    public void setUser(NewsUser user) {
        this.user = user;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }
}
